/* 新增个人主页样式 */
.profile-container {
    max-width: 1200px;
    margin: 100px auto 20px;
    display: flex;
    gap: 24px;
    padding: 0 24px;
}

/* 主内容区 */
.main-profile {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 用户信息头部 */
.profile-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.user-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 2px solid #f0f2f5;
}

.user-info {
    flex: 1;
}

.username {
    font-size: 24px;
    color: #1d2129;
    margin-bottom: 12px;
}

.questions {
    color: #86909c;
    font-size: 14px;
    line-height: 1.5;
}

/* 导航栏 */
.profile-nav {
    display: flex;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 24px;
}

.articleContainer{
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 24px;
}
.nav-item {
    padding: 12px 24px;
    color: #86909c;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.nav-item.active {
    color: #1e80ff;
    font-weight: 500;
}

.nav-item.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1e80ff;
}

/* 徽章展示 */
.medal-section {
    background: #f7f8fa;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.medal-title {
    font-size: 18px;
    color: #1d2129;
    margin-bottom: 12px;
}

/* 右侧边栏 */
.profile-sidebar {
    width: 280px;
}

.stats-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.stat-item:hover {
    background: #f7f8fa;
}

.stat-label {
    color: #86909c;
    font-size: 13px;
    margin-top: 4px;
}

/* 交互按钮 */
.btn-settings {
    width: 100%;
    padding: 8px;
    background: #f0f2f5;
    border: none;
    border-radius: 4px;
    color: #1d2129;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-settings:hover {
    background: #e8f3ff;
    color: #1e80ff;
}
/* 导航栏精确样式 */
.nav-item {
    position: relative;
    padding: 12px 24px;
    color: #71777c;
    cursor: pointer;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 激活态样式 */
.nav-item.active {
    color: #1e80ff !important; /* 深蓝色 */
    font-weight: 500;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: #1e80ff;
    animation: underlineSlide 0.3s ease-out;
}

@keyframes underlineSlide {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* 整体容器 */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 顶部返回栏 */
.return-bar {
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f2f5;
}
.return-link {
    color: #1e80ff;
    text-decoration: none;
    font-size: 14px;
}



/* 整体容器 */
.settings-container {
    width: 1200px;
    margin: 0 auto;
}

/* 顶部返回栏 */
.return-bar {
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f2f5;
}
.return-link {
    color: #1e80ff;
    text-decoration: none;
    font-size: 14px;
}
/* 主体内容 */
.settings-main {
    display: flex;
    gap: 24px;
    padding: 24px;
}

/* 左侧导航 */
.nav-column1 {
    width: 200px;
    background: #f7f8fa;
    border-radius: 8px;
    padding: 16px 0;
}
.nav-item1 {
    padding: 12px 24px;
    color: #515767;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-item1.active {
    background: #e8f3ff;
    color: #1e80ff;
    border-left: 3px solid #1e80ff;
}

/* 中间表单 */
.form-column1 {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
}
.form-title1{
    font-size: 20px;
    color: #1d2129;
    margin-bottom: 24px;
}
.form-group1 {
    margin-bottom: 24px;
}
.form-label1 {
    display: block;
    color: #515767;
    margin-bottom: 8px;
}
.form-label1 span {
    color: #f53f3f;
}
.form-input1 {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
}
.char-count1 {
    color: #86909c;
    font-size: 12px;
    margin-top: 4px;
}

/* 右侧头像区 */
.avatar-column1 {
    width: 280px;
}
.avatar-card1 {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}
.avatar-preview1 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: #f7f8fa;
    overflow: hidden;
}
.upload-tip1 {
    color: #1e80ff;
    margin: 12px 0;
}
.format-tip1 {
    color: #86909c;
    font-size: 12px;
}



.article-page {
    display: flex;
    width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

/* 左侧互动栏 */
.action-sidebar {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-top: 40px;
}
.action-item {
    text-align: center;
    cursor: pointer;
}
.count {
    color: #86909C;
    font-size: 14px;
    margin-top: 8px;
}

/* 中间文章内容 */
.article-main {
    flex: 1;
    width: 800px;
}
.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 16px;
}
.meta {
    color: #86909C;
    font-size: 14px;
    margin-top: 8px;
}
.meta span {
    margin-right: 16px;
}
.title {
    font-size: 32px;
    margin: 0 0 24px;
}
.highlight {
    font-size: 18px;
    line-height: 1.8;
    color: #1D2129;
    border-left: 4px solid #1E80FF;
    padding-left: 16px;
}
.code-block {
    background: #F7F8FA;
    padding: 20px;
    border-radius: 4px;
    font-family: monospace;
    margin: 24px 0;
}
.keywords {
    margin-top: 24px;
}
.keywords span {
    display: inline-block;
    background: #E8F3FF;
    color: #1E80FF;
    padding: 4px 12px;
    border-radius: 4px;
    margin-right: 12px;
}

/* 右侧用户信息 */
.user-sidebar {
    width: 280px;
}
.user-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}
.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 16px;
}
.position {
    color: #86909C;
    font-size: 14px;
    margin: 8px 0;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 24px 0;
}
.number {
    font-size: 18px;
    font-weight: 500;
}
.label {
    color: #86909C;
    font-size: 12px;
}
.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.follow-btn {
    background: #1E80FF;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
}
.message-btn {
    background: white;
    border: 1px solid #1E80FF;
    color: #1E80FF;
    padding: 8px;
    border-radius: 4px;
}

.toc {
    margin-top: 24px;
    padding: 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.toc h4 {
    margin: 0 0 16px;
}
.toc-item {
    color: #1E80FF;
    padding: 8px 0;
    cursor: pointer;
}

/*@media (max-width: 768px) {*/
/*    .article-page {*/
/*        flex-direction: column;*/
/*        padding: 0 16px;*/
/*    }*/
/*    .action-sidebar {*/
/*        width: 100%;*/
/*        flex-direction: row;*/
/*        justify-content: center;*/
/*        padding: 16px 0;*/
/*    }*/
/*    .user-sidebar {*/
/*        width: 100%;*/
/*    }*/
/*}*/
/* 新增用户信息行布局 */
.user-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.user-info {
    flex: 1;
}
.user-info h3 {
    margin: 0;
    font-size: 20px;
}
.position {
    margin: 4px 0 0;
    font-size: 14px;
}

/* 优化左侧导航栏 */
.action-sidebar {
    width: 80px;
    padding: 20px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}
.action-item {
    padding: 12px 0;
    transition: all 0.2s;
}
.action-item:hover {
    background: #f5f7fa;
}



/* 新增顶部导航栏样式 */
.top-bar1 {
    width: 1200px;
    display:block;
    height: 60px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    align-items: center;
    padding: 0 40px;
    z-index: 100;
}
.back-btn1 {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1E80FF;
    cursor: pointer;
    transition: all 0.2s;
}
.back-btn1:hover {
    opacity: 0.8;
}
.nav-brand {
    font-weight: bold;
    margin-left: 24px;
    font-size: 18px;
}



.tech-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.tech-left {
    display: flex;
    align-items: center;
}

.tech-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.css-icon {
    background-color: #2196F3;
    color: white;
}

.js-icon {
    background-color: #FFD600;
    color: black;
}

.tech-name {
    font-size: 16px;
    color: #333;
}

.follow-btn1 {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
}


/* 更新类名后的全局样式 */
.top-bar5 {
    display: flex;
    align-items: center;
    height: 64px;
    background: white;
    padding: 0 24px;
    border-bottom: 1px solid #eee;
}
.user-info5 {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-avatar5 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* 主容器 */
.main-container5 {
    display: flex;
    min-height: calc(100vh - 64px);
}

/* 左侧导航 */
.nav-panel5 {
    width: 240px;
    background: white;
    padding: 20px 0;
    border-right: 1px solid #eee;
}
.nav-item5 {
    padding: 12px 24px;
    margin: 8px 0;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-item5.active5 {
    background: #e8f3ff;
    color: #1a73e8;
    border-right: 3px solid #1a73e8;
}

/* 右侧编辑区 */
.editor-panel5 {
    display: block;
    padding: 40px;
    width: 800px;
}
.editor-header5 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.article-title5 {
    font-size: 24px;
    border: none;
    width: 70%;
    padding: 8px 0;
}
.cover-input5 {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}
.toolbar5 {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.toolbar5 button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}
.editor-content5 {
    height: 600px;
    border: 1px solid #eee;
    padding: 20px;
    background: white;
    border-radius: 4px;
}
.status-bar5 {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    color: #666;
}



/* 基础评论容器样式 */
.commentItem {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

/* 头像和用户名容器 */
.commentItem > div:first-child {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

/* 头像样式 */
.commentAvatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 用户名样式 */
.commentItem span {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

/* 评论内容样式 */
.commentContent {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

/* 评论图片容器 */
.commentIMG {
    margin: 0.8rem 0;
}

.commentIMG img {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 时间显示 */
.commentTime {
    color: #718096;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* 按钮容器 */
.backComment {
    margin-top: 0.8rem;
    display: flex;
    gap: 12px;
}

/* 通用按钮样式 */
.backComment button {
    padding: 6px 14px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 回复按钮 */
button.backComment {
    background: #4299e1;
    color: white;
}

button.backComment:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

/* 删除按钮 */
button.deleteComment {
    background: #fc8181;
    color: white;
}

button.deleteComment:hover {
    background: #f56565;
    transform: translateY(-1px);
}

/* 子评论容器样式 */
.childrenComment {
    margin-left: 40px;
    padding-left: 20px;
    border-left: 2px solid #e2e8f0;
    margin-top: 1.2rem;
}

/* 悬停效果增强 */
.commentItem:hover {
    transform: translateX(5px);
    background: #ffffff;
}

/* 按钮图标（可选）*/
button.backComment::before {
    content: "↩️";
    font-size: 0.9em;
}

button.deleteComment::before {
    content: "🗑";
    font-size: 0.9em;
}